package com.bawan.vims.xsocket;

import java.io.IOException;
import java.net.UnknownHostException;

import org.xsocket.connection.IServer;
import org.xsocket.connection.Server;

public class XSocketServer extends Thread {
	private static final int PORT = 9099;
	
	public void run() {
		IServer iServer = null;
		try {
			iServer = new Server(PORT, new XSocketHandler());
		} catch (UnknownHostException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
		iServer.run();
		System.out.println("The ISocketServer start on port:" + PORT);
	}
}
